/*
 * testAdc.h
 *
 *  Created on: 22-10-2013
 *      Author: Kamil
 */

#ifndef TESTADC_H_
#define TESTADC_H_

#include "../pre_emptive_os/api/osapi.h"
#include "../pre_emptive_os/api/general.h"
#include <printf_P.h>
#include <lpc2xxx.h>
#include <consol.h>
#include "eeprom.h"
#include "../startup/config.h"

#define CRYSTAL_FREQUENCY FOSC
#define PLL_FACTOR        PLL_MUL
#define VPBDIV_FACTOR     PBSD

#define AIN0 0
#define AIN1 1
#define AIN2 2
#define AIN3 3
#define AIN4 4
#define AIN5 5
#define AIN6 6
#define AIN7 7

#define VREF_IN_MV 2475


tU16 getAnalogueInput(tU8 channel);
tU16 getAnalogueInput1(tU8 channel);

#endif /* TESTADC_H_ */
